<form action="<?php echo base_url('home/login');?>" method="post" id="frm_login_users">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <img src="<?php echo base_url('assets/home/images/logo.png');?>" class="img-reponsive" alt="logo">
    </div>
    <div class="modal-body">
  	 	<?php if(!empty($this->session->userdata('session_user_id')) ){ ?>
  	 		<div class="form-group text-center">
  	 			<h3> Welcome ! <strong> <a href="<?php echo base_url('profile.html');?>" title=""><?php echo $this->session->userdata('session_fullname');?></a> </strong> </h3>
  	 			<p>You are logged in animemovie.us Wish you see the movie fun..!</p><br>
  	 			<a href="<?php echo base_url('logout.html')?>" title="logout">Logout</a>
  	 		</div>
  	 	<?php }else{ ?>
			<div class="form-group text-center has-error">
			<?php if(isset($error)){echo $error;}?>
	  	 	</div>
	   	    <div class="form-group <?php if(form_error('users') != NULL){echo 'has-error';}?> text-center">
		    	<label class="col-sm-3" for="exampleInputEmail1"><span style="color: red;">*</span>User name</label>
			    <div class="input-group col-sm-9">
			    	<span class="input-group-addon"><i class="fa fa-user"></i></span>
				    <input type="text" value="<?php echo set_value('users');?>" class="form-control" name="users" id="exampleInputUsername" placeholder="Enter username">
			    </div>
			    <?php echo form_error('users','<p class="help-block">','</p>');?>
		  	</div>
		    <div class="form-group  <?php if(form_error('password') != NULL){echo 'has-error';}?> text-center">
			    <label class="col-sm-3" for="exampleInputEmail1"><span style="color: red;">*</span>Password</label>
			    <div class="input-group col-sm-9">
			    	<span class="input-group-addon"><i class="fa fa-key"></i></span>
			    	<input type="password" class="form-control" name="password" id="exampleInputPass" value="<?php echo set_value('users');?>" placeholder="Enter password">
				</div>
				<?php echo form_error('password','<p class="help-block">','</p>');?>
		    </div>
			<div class="form-group ">
				<div class="col-sm-3"></div>
				<div class="input-group col-sm-9"><button type="button" name="login"  class="btn btn-primary btn_lg pull-right">Login</button></div>
			</div>
  	 	<?php } ?>
   </div>
   <div class="modal-footer">
  	   <div class="row text-center">
	      	<div class="lg_connect text-right">
	           <a href="" title="facebook" class="facebook"> <i class="fa fa-facebook fa-2x"></i></a>
	           <a href="" title="google-plus" class="google-plus"> <i class="fa fa-google-plus fa-2x"></i></a>
	           <a href="" title="twitter" class="twitter"> <i class="fa fa-twitter fa-2x"></i></a>
	      	</div>
      	</div>
   </div>
</form>
<script src="<?php echo base_url('assets/home')?>/js/scripts.js" type="text/javascript"></script>